package cn.wolfcode.p2p.mgrsite.web.controller;

import cn.wolfcode.p2p.base.query.PermissionQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.wolfcode.p2p.base.service.IPermissionService;

/**
 *	权限控制器
 */
@Controller
public class PermissionController {
	@Autowired
	private IPermissionService permissionService;

	@RequestMapping("/permission_list")
	public String permissionList(Model model, PermissionQuery qo){

		model.addAttribute("pageInfo", permissionService.query(qo));
		return "permission/list";
	}
}
